package com.yunfei.core.utils.enmu;

/**
 * 自定义请求状态码
 * @author ScienJus
 * @date 2015/7/15.
 */
public enum ZuHeResultStatus {
    SUCCESS(0, "成功"),
    LABEL_NOTNULL(4000, "选择标签不能为空"),
    ASSETS_NOTNULL(4001, "自选资产组合不能为空"),
    GROUPID_NOTNULL(4002, "组合ID不能为空"),
    GROUPNM_NOTNULL(4003, "组合名称不能为空"),
    ERROR(-1, "错误");



    /**
     * 返回码
     */
    private int code;

    /**
     * 返回结果描述
     */
    private String message;

    ZuHeResultStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
